<?php
	require_once("../include/connect.php");

	$data = array();
	$tinh = $_POST['tinh'];
	//echo $tinh;
	$query = mysql_query(" SELECT id,name FROM districts WHERE province_id = '$tinh' ");
	if(mysql_num_rows($query) > 0)
	{
	//	echo " <span style='margin-right:61px;'> Huyện </span> <select id='select1' name='select1' style='width:200px;'> ";
		while($row = mysql_fetch_array($query))
		{
				echo " <option value='".$row['id']."'> ".$row['name']." </option> ";
		}
	//	echo " </select>  ";
	}
	else
		echo "Chưa có huyện";
?>
